package com.example.noval.network.repository

import com.example.noval.network.ServiceCreator
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import retrofit2.http.Path

/**
 * @Description
 * @Author zzl
 * @Date 2024/3/27
 */
class BookRepository {

    suspend fun searchContent(bookId:String, tocId:String, md5:String)= withContext(Dispatchers.IO){
      
      val content= ServiceCreator.apiService1.searchContent(bookId,tocId,md5)
      content  
    }
}